// 自动生成模板Model
package device

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// model表 结构体  Model
type Model struct {
	global.GVA_MODEL
	EquipmentModel            *string    `json:"equipmentModel" form:"equipmentModel" gorm:"comment:设备型号;column:equipment_model;size:255;"`                                   //设备型号
	DeviceName                *string    `json:"deviceName" form:"deviceName" gorm:"comment:设备名称;column:device_name;size:100;"`                                               //设备名称
	Size                      *string    `json:"size" form:"size" gorm:"comment:尺寸;column:size;size:255;"`                                                                    //尺寸
	Weight                    *string    `json:"weight" form:"weight" gorm:"comment:重量;column:weight;size:255;"`                                                              //重量
	CertificateOfRegistration *string    `json:"certificateOfRegistration" form:"certificateOfRegistration" gorm:"comment:注册证书;column:certificate_of_registration;size:255;"` //注册证书
	ListingDate               *time.Time `json:"listingDate" form:"listingDate" gorm:"comment:上市时间;column:listing_date;"`                                                     //上市时间
	Describe                  *string    `json:"describe" form:"describe" gorm:"comment:说明;column:describe;size:255;"`                                                        //说明
	Image                     string     `json:"image" form:"image" gorm:"comment:设备图片;column:image;size:255;"`                                                               //设备图片
}

// TableName model表 Model自定义表名 model
func (Model) TableName() string {
	return "model"
}
